﻿#ifndef LOGIN_H_
#define LOGIN_H_
#include <QWidget>
#include <QPushButton>
#include <QLineEdit>
#include <QLabel>

#include "MainWindow.h"

class QPushButton;
class QLabel;
class QLineEdit;


class Login : public QWidget
{
	Q_OBJECT

private:
	QLineEdit*		usernameEdit;
	QLineEdit*		passwordEdit;
	QPushButton*	loginBtn;
	QLabel*			infoLab;

	MainWindow*		m_mainwindow;
public:
	Login(QWidget* parent = nullptr);

	void init();

	void layout();

public slots:
	void onLoginBtnReleased();
};


#endif // !LOGIN_H_
